package edu.um.io;

public class Console {
  private static boolean debug = false;

  public static void debug(Object msj) {
    if (debug) {
      System.out.println(msj);
    }
  }

  public static void log(Object msj) {
    System.out.println(msj);
  }

  public static void error(Object msj) {
    System.err.println(msj);
  }

  public static void setDebug(boolean debugMode) {
    debug = debugMode;
  }

  public static boolean isDebug() {
    return debug;
  }
}
